class CreateChatWindows < ActiveRecord::Migration[5.2]
  def change
    create_table :chat_windows do |t|
      t.integer :shop_chat_id
      t.integer :user_id
      t.integer :shoper_id
      t.boolean :is_online, default: false
      t.integer :unread, default: 0
      t.integer :state, default: 0

      t.timestamps
    end
  end
end
